function ExecuteSwitchTheme(urlRoot)
{  
    var COOKIE_NAME = 'current_theme';
    var curTheme    = $.cookie(COOKIE_NAME);
    var themeFile   = '/jquery.ui.theme.css';
    var date = new Date();
    date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000));

    if( curTheme && curTheme.length > 0 ){
        SwitchThemes(urlRoot+curTheme+themeFile);
    }
    $('#themes_switcher').change(function(event, ui){
        $.cookie(COOKIE_NAME, $(this).val(), { path: '/', expires: date });
        SwitchThemes(urlRoot+$(this).val()+themeFile);
    });
}